<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Revistas onDemand</title>
  <%= stylesheet_link_tag 'style' %>
</head>
<body>

<div id="wrapper">
	<div id="header">
        <div id="title">Revistas onDemand</div>
        <div id="subtitle">Descubra um novo mundo</div>
        <div id="menu">
            <div id="menubar">
                <a href="#">Home</a> |
				<%= link_to 'Usu&aacute;rios', :controller => 'users', :action => 'list_users'%> |
                <%= link_to 'Revistas', :controller => 'magazines', :action => 'list'%> |
                <%= link_to 'Listas', :controller => 'circulation_lists', :action => 'list'%> |
                <%= link_to 'Logout', :controller => '../login', :action => 'logout'%>
            </div>
            <div id="visitorbar">Seja bem-vindo, <%= session[:complete_name]%>!</div>
        </div>
    </div>
    <div id="page">
    	<div id="contentbg">
        	<div id="content">
        		<h1>Revistas<hr/></h1>
				<p style="color: red"><%= flash[:notice] %></p>
				<%= yield  %>
            </div>
        </div>
    </div>
</div>
<div id="footer">
	<div id="links">
		<a href="#">Sobre a companhia</a> | 
        <a href="#">Privacidade</a> | 
        <a href="#">Contato</a> | 
        <a href="#">Termos de Uso</a>
    </div>
</div>

</body>
</html>
